TEX=report

all: $(TEX)

$(TEX):
	@echo "\n===\nmaking $@\n===\n"
	pdflatex $@
	bibtex   $@
	pdflatex $@
	pdflatex $@
	@echo "\n===\ncompiled $@\n===\n"

spellcheck:
	aspell -c -t $(TEX).tex -d de_AT

clean:
	rm -f *.acn *.acr *.alg *.aux *.bbl *.blg *.glg *.glo *.gls *.glsdefs *.ist *.loa *.lof *.lot *.cls *.hd *.idx *.ilg *.ind *.log *.out *.toc *.pdf

.PHONY: all $(TEX) clean
